package utils;

/**
 * 边类
 * @author 车宗绍Che Zongshao
 * @date 2015/1/7
 */

public class Edge {

	private int length;		// 边的长度
	private Node start;		// 边的起点
	private Node end;		// 边的终点
	
	public Edge(int length, Node start, Node end) {
		this.length = length;
		this.start = start;
		this.end = end;
	}
	public Edge() {}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public Node getStart() {
		return start;
	}
	public void setStart(Node start) {
		this.start = start;
	}
	public Node getEnd() {
		return end;
	}
	public void setEnd(Node end) {
		this.end = end;
	}
	
}